<div id="logo">
    <% if @site.has_logo? %>
        <%= link_to image_tag("/resource/upload/#{@site.directory}/logo.gif"), :controller => 'site', :action => "site_show", :site_directory => @site, :only_path => false %>
    <% else %>
        <%= link_to @site.title, :controller => 'site', :action => "site_show", :site_directory => @site, :only_path => false %>
    <% end %>
</div>